import request from '@/services/baseService';

export default {
  buyOutPage: data => {
    return request(`/hzsx/splitBill/buyOutPage`, data);
  },
  rentPage: data => {
    return request(`/hzsx/splitBill/rentPage`, data);
  },
  rentDetail: data => {
    return request(`/hzsx/splitBill/rentDetail`, data, 'get');
  },
  buyOutDetail: data => {
    return request(`/hzsx/splitBill/buyOutDetail`, data, 'get');
  },
  paySplitBill: data => {
    return request(`/hzsx/splitBill/paySplitBill`, data, 'get');
  },
  rentExport: data => {
    return request(`/hzsx/splitBill/rentExport`, data);
  },

  purchaseExport: data => {
    return request(`/hzsx/splitBill/purchaseExport`, data);
  },
  buyOutExport: data => {
    return request(`/hzsx/splitBill/buyOutExport`, data);
  },
  purchasePage: data => {
    return request(`/hzsx/splitBill/purchasePage`, data);
  },
  purchaseDetail: data => {
    return request(`/hzsx/splitBill/purchaseDetail`, data, 'get');
  },
  paySplitBills: data => {
    return request(`/hzsx/splitBill/paySplitBill`, data, 'get');
  },
  getBalance: data => {
    return request(`/hzsx/opeShop/balance`, data, 'get');
  },
  getLedgerRecords: data => {
    return request(`/hzsx/opeShop/ledger-records`, data);
  },
  getWithDrawRecords: data => {
    return request(`/hzsx/opeShop/queryWithDraw`, data);
  },
  getWithdrawDetail: data => {
    return request(`/hzsx/opeShop/queryWithDrawDetail`, data,'get');
  },
  withDrawAudit: data => {
    return request(`/hzsx/opeShop/withdraw-audit`, data);
  },
};

